package com.lzw.skinchange.sample.loader;

import android.content.Context;

import com.lzw.skinchange.androidx.core.load.SkinSDCardLoader;
import com.lzw.skinchange.androidx.core.utils.SkinFileUtils;
import com.lzw.skinchange.androidx.core.utils.Slog;

import java.io.File;

public class CustomSDCardLoader extends SkinSDCardLoader {

    public static final int SKIN_LOADER_STRATEGY_SDCARD = Integer.MAX_VALUE;

    @Override
    protected String getSkinPath(Context context, String skinName) {
        String skinPath = new File(SkinFileUtils.getSkinDir(context), skinName).getAbsolutePath();
        return skinPath;
    }

    @Override
    public int getType() {
        return SKIN_LOADER_STRATEGY_SDCARD;
    }
}
